import Main from '../pages/main/Main'
import Index from '../pages/main/index'
import About from "../pages/main/About"
import LatestBlog from "../pages/main/LatestBlog"
import ProjectList from "../pages/main/ProjectList"
import DisplayTopic from '../pages/topic/displayTopic'

export default [
  {
    path: '/',
    name: 'main',
    meta: {
      title: '博客系统'
    },
    component: Main,
    children: [
      {
        path: '/index',
        name: 'index',
        meta: {
          title: '主页'
        },
        component: Index
      },
      {
        path: '/About',
        name: 'about',
        meta: {
          title: '关于我'
        },
        component: About
      },
      {
        path: '/latestBlog',
        name: 'latestBlog',
        meta: {
          title: '最新的博客'
        },
        component: LatestBlog
      },
      {
        path: '/projectList',
        name: 'projectList',
        meta: {
          title: '项目列表'
        },
        component: ProjectList
      },
      {
        path: '/topic',
        meta: {
          title: '博客'
        },
        name: 'topic',
        component: DisplayTopic
      }
    ]
  }
]
